package com.douyin;

import com.douyin.authority.AuthorityUtils;
import com.douyin.authority.BaseAuthority;
import com.douyin.properties.JwtProperties;
import com.douyin.utils.SpringUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableAsync
@EnableAspectJAutoProxy
@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.douyin.mapper")
@EnableScheduling
public class DouYinApplication {


    public static void main(String[] args) {

        SpringApplication.run(DouYinApplication.class, args);

        //设置全局权限验证
        AuthorityUtils.setGlobalVerify(true,new BaseAuthority());
    }

}
